package com.inspur.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inspur.ssm.dao.NewsDao;
import com.inspur.ssm.pojo.NewsBean;
import com.inspur.ssm.service.NewsService;


@Service("newsService")
public class NewsServiceImpl implements NewsService{
	
	@Autowired
	private NewsDao newsDao;



	@Override
	public List<NewsBean> getNewsList() {
		return newsDao.getNewsList();
	}




	@Override
	public NewsBean getNews(String id) {
		// TODO Auto-generated method stub
		return newsDao.getNews(id);
	}


}
